package com.church.action;

import java.util.List;

import com.church.base.common.util.ExtData;
import com.church.db.Music;
import com.church.services.MusicServices;
import com.opensymphony.xwork2.ActionSupport;

public class GetMusicList extends ActionSupport {
	private MusicServices musicServices;
	private ExtData<Music> musicList;
	
	public MusicServices getMusicServices() {
		return musicServices;
	}

	public void setMusicServices(MusicServices musicServices) {
		this.musicServices = musicServices;
	}

	public ExtData<Music> getMusicList() {
		return musicList;
	}

	public void setMusicList(ExtData<Music> musicList) {
		this.musicList = musicList;
	}

	public String execute() {
		musicList = new ExtData<Music>();
		musicList.setSuccess(true);
		musicList.setRoot(musicServices.getList());
		return "success";
	}
}
